|
|
|
|
|
|
|
Illustrating Example: Second Bank of Carrollton |
|
|
|
|
|
|
|
|
Your client requires that the Samsona Bank Teller System dial up the Federal Reserve's online funds rate monitoring system every fifteen minutes to obtain the latest Fed Funds Rate. All bank products and internal bank holding accounts that depend on this rate must reflect it in calculating the interest rate for each type of interest-sensitive account. After completing the analysis and design for this requirement, you have the simplified account classes, as shown in Table 5.1. |
|
|
|
|
| TABLE 5.1. IMPORTANT APPLICATION CLASSES FOR THE SECOND BANK OF CARROLLTON. | | Class | Attribute | Method | | Savings | AccountNumber | calculateInterestRate() | | CurrentBalance | accrueInterest() | | InterestRate | deposit() | | | withdraw() | | InterestBearingChecking | AccountNumber | calculateInterestRate() | | CurrentBalance | accrueInterest() | | InterestRate | deposit() | | | withdraw() | | BankHolding | AccountNumber | calculateInterestRate() | | CurrentBalance | accrueInterest() | | InterestRate | deposit() | | TypeOfHolding | transfer() | | | calculateTax() | | FedFundsMonitor | PhoneNumber | calculateFundsRate() | | CurrentRate | getRate() | | ObjectFactory | None | createSavings() | | | createInterestBearingChecking() | | | createBankHolding() | | AccountCollection | None | addObject() | | | removeObject() | | | getObject() | | | persistObjects() |
|
|
|
|
|
|
Listing 5.1 shows the declarations for each object. |
|
|
|
|
|